package com.hc.mapper;

import com.hc.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 默认：系统中不存在同username的用户
     * @param username
     * @return
     */
    @Select("select * from tb_user where username=#{username} ")
    User selectUserByUsername(String username);

}
